package com.study.shiro.shirospringboot.service.impl;

import com.study.shiro.shirospringboot.dao.UserInfoRepository;
import com.study.shiro.shirospringboot.pojo.UserInfo;
import com.study.shiro.shirospringboot.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    
    @Resource
    private UserInfoRepository userInfoRepository;
    
    @Override
    public UserInfo findByUsername(String username) {
       System.out.println("UserInfoServiceImpl.findByUsername()");
       return userInfoRepository.findByUsername(username);
    }
    
}